package com.study.java8.stram;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

public class StramDemo {

    public static void main(String[] args) {

        List<String> player = Arrays.asList("abc", "ab", "cc");

        List<String> a = player.stream()
                .filter(s ->
                        s.startsWith("a")
                )
                .map(String::toUpperCase)
                .sorted()
                .collect(Collectors.toList());

        System.out.println(a);

    }

}
